import request from '../utils/request'

export function fetchList(params){
    return request({
        url:'/admin/banner',
        method:'get',
        params
    })
}

export function add(data){
    return request({
        url:'/admin/banner/add',
        method:'post',
        data
    })
}

export function update(data){
    return request({
        url:'/admin/banner/update',
        method:'post',
        data
    })
}

export function remove(data){
    return request({
        url:'/admin/banner/delete',
        method:'post',
        data
    })
}